﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PBOffice.Models;
using PBOffice.BLL;

public partial class Message_AllUser : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int i = 1; ;
            int id = Convert.ToInt32(Request.QueryString["msgId"]);
            List<MessageToUser> useLlist = new MsgToUserManager().GetAllMsgToUserByMsgId(id);
            foreach (MessageToUser item in useLlist)
            {
                ListItem box = new ListItem();
                box.Text = item.ToUserId;
                box.Selected = true;

                box.Value = i.ToString();
                cblist.Items.Add(box);
                i++;
            }
        }

    }

    protected void btnC_Click(object sender, EventArgs e)
    {
      // Response.Write("<script>window.close();</script>");// 会弹出询问是否关闭
       Response.Write("<script>window.opener=null;window.close();</script>");// 不会弹出询问
    }
}